package com.ruoyi.web.controller.feign;

import com.mashuai.utils.toolkit.core.msHandlebean.dto.MsDictDto;
import com.ruoyi.system.service.ISysDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * 仿造feign请求，只给内部使用
 */
@RestController
@RequestMapping("/system/feign")
public class FeignController {
    @Autowired
    private ISysDictTypeService sysDictTypeService;

    /**
     * 获取字典类型
     **/
    @PostMapping("/getDictData")
    public List<MsDictDto> getDictData(@RequestBody List<String> dictTypeList) {
        List<MsDictDto> dictData = sysDictTypeService.getDictData(dictTypeList);
        return dictData;
    }

}
